<!-- FULL BLOCK HỖ TRỢ LIÊN KẾT -->
<?php
	$sql = "SELECT * FROM links WHERE is_support=1";
	$connection = yii::app()->db;
	$command = $connection->createCommand($sql);
	$result =  $command->queryAll();
?>
<div class="block block-support-link container">
	<h2 class="title"><a href="javascript:void(0)"><i class="icon icon-support-link"></i><?php echo translate("Hỗ trợ liên kết"); ?></a></h2>
	<?php if(!empty($result)){ ?>
		<div id="owl-carousel-02" class="owl-carousel">
			<?php foreach($result as $row){ ?>
				<div class="item-inner">
					<span><img src="<?php 
							if(file_exists(yii::app()->basePath."/../upload/images/".$row['image']))
								echo yii::app()->baseUrl."/upload/images/".$row['image'];
							else	echo yii::app()->baseUrl."/upload/images/noname.jpg";
					?>" alt="img" style="max-width:200px; max-height:40px;"></span>
				</div>
			<?php } ?>
		</div>
	<?php } ?>
</div>